package com.ruoyi.quartz.service.impl;

import com.ruoyi.quartz.domain.BaseMenu;
import com.ruoyi.quartz.mapper.BaseMenuMapper;
import com.ruoyi.quartz.service.IBaseMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseMenuServiceImpl implements IBaseMenuService {

    @Resource
    private BaseMenuMapper baseMenuMapper;

    @Override
    public List<BaseMenu> selectAll(BaseMenu baseMenu) {
        return baseMenuMapper.selectAll(baseMenu);
    }

    @Override
    public BaseMenu selectMenuById(Integer menu_id) {
        return baseMenuMapper.selectMenuById(menu_id);
    }

    @Override
    public int insertMenu(BaseMenu baseMenu) {
        return baseMenuMapper.insertMenu(baseMenu);
    }

    @Override
    public int updateMenu(BaseMenu baseMenu) {
        return baseMenuMapper.updateMenu(baseMenu);
    }

    @Override
    public int deleteMenuByIds(Integer[] menu_ids) {
        return baseMenuMapper.deleteMenuByIds(menu_ids);
    }
}
